<script>
import {defineComponent} from 'vue'
import Child from "@/components/Child.vue";

export default defineComponent({
    name: "App",
    data(){
        return {
            num:1
        }
    },
    components: {Child},
})
</script>

<template>
    <div>
        <h3>App</h3>
        <input type="text" v-model.number="num">
        <input type="text" :value="num" @input="num=$event.target.value/1">
        <input type="text" :value="num" @input="(e)=>num=e.target.value/1">
        <hr/>
        <Child v-model="num" />
    </div>
</template>

<style scoped>

</style>